home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: Newbie question: Is this code OK?
- Date: 17 Jan 1996 13:35:22 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4djj1q$pnh@solutions.solon.com>
- References: <4di986$fk1@pegasus.interpac.net> <4dj7gp$e1o@beach.and.nl>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4dj7gp$e1o@beach.and.nl>, Jos A. Horsmeier <jos@and.nl> wrote:
- >If we really carry things over the edge, we could've implemented the
- >if-then-else part as:
-
- > if (isspace(*string)^state) {
-
- *ahem*.
-
- > num_words+= state;
- > state= !state;
- > }
-
- There is an obvious problem with that line.
-
- >but I wouldn't encourage such type of programming (leave that to idiots
- >who don't know any better, like me ;-)
-
- :)
-
- (Overall, your analysis was quite good. But be more careful.)
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
- C/Unix proto-wizard -- C/Unix questions? Send mail for help. No, really!
- Using trn? Weird new newsgroup problem? I know the fix! Email me!
- The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
-